﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using XCI.Data.Entity;

namespace XCI.Sys.Model
{
    /// <summary>
    /// 在线用户
    /// </summary>
    public class OnlineUserModel
    {
        /// <summary>
        /// 用户主键
        /// </summary>
        [Primary]
        [Column("用户主键", false)]
        public string Id { get; set; }

        /// <summary>
        /// 用户姓名
        /// </summary>
        [Column("姓名")]
        public string Name { get; set; }

        /// <summary>
        /// 登陆账户
        /// </summary>
        [Column("账号")]
        public string Account { get; set; }

        /// <summary>
        /// 登录时间
        /// </summary>
        [Column("登录时间")]
        public DateTime LoginTime { get; set; }

        /// <summary>
        /// 激活时间
        /// </summary>
        [Column("激活时间")]
        public DateTime ActiveTime { get; set; }

        /// <summary>
        /// 部门主键
        /// </summary>
        [Column("部门主键", false)]
        public string DeptId { get; set; }

        /// <summary>
        /// 部门名称
        /// </summary>
        [Column("部门名称")]
        public string DeptName { get; set; }

        /// <summary>
        /// 登录IP
        /// </summary>
        [Column("登录IP")]
        public string Ip { get; set; }

        /// <summary>
        /// 是否超级管理员
        /// </summary>
        [Column("管理员")]
        public bool Admin { get; set; }
    }
}
